{include file="/public/top" /}

{include file="/public/layui" /}


<div class="pad">
  <div class="breadNav">
    <div class="flt breadNav_text"> <span>项目</span><i></i><span>项目管理</span><i></i><span>待回款</span> </div>
    <div class="frt breadNav_other">
      <div class="bn_input theme-pop-btn">
      
      <div class="bn_input"> </div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<form target="zhuchuang_frm" method="post">
<div class="daemonTable">
  <table class="table_data daemon_data" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <th class="w-100"> 序号 </th>
      <th>标题</th>
      <th>车商</th>
      <th>开始时间</th>
      <th>筹资时间</th>
      <th>持有时间</th>
      <th>投票时间</th>
      <th>筹资金额</th>
      <th>上线</th>
      <th>发布时间</th>
      
      <th class="w-200"> 操作 </th>
    </tr>
	{volist name="project" id="vo"}
    <tr class="cred">
        <td>{$vo.id}</td>
        <td>{$vo.title}</td>
         <td>{$vo.cheshang_id}</td>
        <td>{$vo.stime} </td>
        <td>{$vo.days}</td>
        <td>{$vo.chi_days}</td>
        <td>{$vo.toupiao}</td>
		<td>{$vo.money}</td>         
         
        <td>          <span class="green">{$vo.audit|projectstatus}          </span></td>
 		<td>{$vo.addtime} </td>
         <td>
          <a href="{:url('project/projectab',array('id'=>$vo['id']))}" class="pub_btn ">查看</a><a  onclick="ztp('{$vo.id}')" class="pub_btn ">回款</a></td>
      </tr>
	  {/volist}
	   </tbody></table>
</div>
<div class="daemonBot">
  <div class="flt daemonBot_cz"> </div>
  <div class="frt daemonPage"> <div class="paging"> <span>{$project->render()}</span>            </div> </div>
  <div class="clear"></div>
</div>
</form></div>
<div class="theme-popover">   
</div>
<div class="theme-popover-mask"></div>

<script>

		 function loginsubmit(id){
               
              
                if( id ){
                    $.ajax({
                        async:false,
                        url:"{:url('project/ajaxreturnt')}",
                        data:{'id':id},
                        type:'post',
                        dataType:'json',
                        success:function(res){
							
							console.log(res);
							loadingnone();	
							
                                
                            if(res.status != 1){
                                msg(res.msg);
                                
                                money=false;
                                
                                return false;
                            }else{
                                
								
								msg(res.msg);
								setTimeout(function(){window.location.reload();},'2000');
                            }
                        },
                        error : function(XMLHttpRequest, textStatus, errorThrown) {
							console.log(textStatus);
								msg('网络失败，请刷新页面后重试!');
                          
                        }
                    });
                }else{
                    return false;
                }
            }
</script>
<script>
function  ztp(id){
layui.use('layer', function(){
  var layer = layui.layer;
  
  layer.open({
	 
	  id:'layui',
      title: '回款',
      content: '确认回款吗？',
	 
	  yes:function(index, layero){
	  loading();
	  layer.close(layer.index);
	  loginsubmit(id);
	  
	  }

});  
}); 
}
</script>

</body></html>